﻿<UserControl x:Class="Wulong.Phone.Dianping.Views.GroupOnItemView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d" FontFamily="{StaticResource PhoneFontFamilyNormal}"
             FontSize="{StaticResource PhoneFontSizeNormal}"
             Foreground="{StaticResource PhoneForegroundBrush}"
             d:DesignHeight="480"
             d:DesignWidth="480"
             xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
             xmlns:util="clr-namespace:Wulong.Phone.Dianping.Utils;assembly=Wulong.Phone.Dianping.Utils"
             xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">
    <Grid x:Name="LayoutRoot" Background="Transparent" Width="480" Height="800">
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!--ContentPanel - place additional content here-->
        
        <StackPanel Grid.Row="1">
            <phone:WebBrowser 
                x:Name="browser"
                util:WebBrowserHelper.Source="{Binding Link}" 
                Width="480" 
                Height="700" />
        </StackPanel>
        <Grid x:Name="busyIndicator" Grid.Row="1"
                      Visibility="Collapsed">
            <TextBlock Text="{Binding Path=Appi18n.Loading, Source={StaticResource ls}}" 
                               Style="{StaticResource LoadingStyle}"/>
            <toolkit:PerformanceProgressBar 
                x:Name="progressBar"
                IsIndeterminate="False"
                VerticalAlignment="Center" 
                IsTabStop="True"
            />
        </Grid>
    </Grid>
</UserControl>
